+Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
+ my recent expanding change to not expand the table if all children
+ have not epxand behaviour. this fixes palette views which often
+ use homogeneous non-expanding tables.
+
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
+Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
+ my recent expanding change to not expand the table if all children
+ have not epxand behaviour. this fixes palette views which often
+ use homogeneous non-expanding tables.
+
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
+Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
+ my recent expanding change to not expand the table if all children
+ have not epxand behaviour. this fixes palette views which often
+ use homogeneous non-expanding tables.
+
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
+Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
+ my recent expanding change to not expand the table if all children
+ have not epxand behaviour. this fixes palette views which often
+ use homogeneous non-expanding tables.
+
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
+Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
+ my recent expanding change to not expand the table if all children
+ have not epxand behaviour. this fixes palette views which often
+ use homogeneous non-expanding tables.
+
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
+Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
+ my recent expanding change to not expand the table if all children
+ have not epxand behaviour. this fixes palette views which often
+ use homogeneous non-expanding tables.
+
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
+Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
+ my recent expanding change to not expand the table if all children
+ have not epxand behaviour. this fixes palette views which often
+ use homogeneous non-expanding tables.
+
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
if (table->homogeneous)
{
- width = real_width;
-
- for (col = 0; col + 1 < table->ncols; col++)
- width -= table->cols[col].spacing;
-
- for (col = 0; col < table->ncols; col++)
+ if (!table->children)
+ nexpand = 1;
+ else
{
- extra = width / (table->ncols - col);
- table->cols[col].allocation = MAX (1, extra);
- width -= extra;
+ nexpand = 0;
+ for (col = 0; col < table->ncols; col++)
+ if (table->cols[col].expand)
+ {
+ nexpand += 1;
+ break;
+ }
+ }
+ if (nexpand)
+ {
+ width = real_width;
+ for (col = 0; col + 1 < table->ncols; col++)
+ width -= table->cols[col].spacing;
+
+ for (col = 0; col < table->ncols; col++)
+ {
+ extra = width / (table->ncols - col);
+ table->cols[col].allocation = MAX (1, extra);
+ width -= extra;
+ }
}
}
else
if (table->homogeneous)
{
- height = real_height;
-
- for (row = 0; row + 1 < table->nrows; row++)
- height -= table->rows[row].spacing;
-
-
- for (row = 0; row < table->nrows; row++)
+ if (!table->children)
+ nexpand = 1;
+ else
+ {
+ nexpand = 0;
+ for (row = 0; row < table->nrows; row++)
+ if (table->rows[row].expand)
+ {
+ nexpand += 1;
+ break;
+ }
+ }
+ if (nexpand)
{
- extra = height / (table->nrows - row);
- table->rows[row].allocation = MAX (1, extra);
- height -= extra;
+ height = real_height;
+
+ for (row = 0; row + 1 < table->nrows; row++)
+ height -= table->rows[row].spacing;
+
+
+ for (row = 0; row < table->nrows; row++)
+ {
+ extra = height / (table->nrows - row);
+ table->rows[row].allocation = MAX (1, extra);
+ height -= extra;
+ }
}
}
else